using System;
using System.Collections.Generic;
using System.Text;
namespace BANSACH.BusinessLayer
{
	public class TblNXB: BusinessObjectBase
	{

		#region InnerClass
		public enum TblNXBFields
		{
			MaNXB,
			TenNXB,
			DiaChi,
			Email,
			DienThoai
		}
		#endregion

		#region Data Members

			string _maNXB;
			string _tenNXB;
			string _diaChi;
			string _email;
			string _dienThoai;

		#endregion

		#region Properties

		public string  MaNXB
		{
			 get { return _maNXB; }
			 set
			 {
					_maNXB = value;
			 }
		}

		public string  TenNXB
		{
			 get { return _tenNXB; }
			 set
			 {
					_tenNXB = value;
			 }
		}

		public string  DiaChi
		{
			 get { return _diaChi; }
			 set
			 {
					_diaChi = value;
			 }
		}

		public string  Email
		{
			 get { return _email; }
			 set
			 {
					_email = value;
			 }
		}

		public string  DienThoai
		{
			 get { return _dienThoai; }
			 set
			 {
					_dienThoai = value;
			 }
		}


		#endregion

        public override bool IsValid
        {
            get
            {
                _isvalid = true;
                if (_tenNXB.Trim() == "")
                {
                    _isvalid = false;
                    _errorMsg = "Bạn chưa nhập tên Nhà xuất bản.";
                }
                return base.IsValid;
            }
            set
            {
                base.IsValid = value;
            }
        }
	}
}
